package com.google.code.greenplate;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class GiveARide_v1 extends Activity {
	private Button mMapButton;
	private Button mGivearideButton;
	
	private class GetarideButtonListener implements OnClickListener {

		public void onClick(View v) {
            Intent intent = new Intent();
            intent.setClass(GiveARide_v1.this, LiveRides.class);
            startActivity(intent);
		}
	}
	
	private class MapButtonListener implements OnClickListener {

		public void onClick(View v) {
			
		}
	}
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.getaride);
        setWidgetReferences();
        addWidgetListeners();
    }
    
    private void setWidgetReferences() {
    	mMapButton = (Button) findViewById(R.id.mapButton);
    	mGivearideButton = (Button) findViewById(R.id.givearideButton);
    }
    
    private void addWidgetListeners() {
    	MapButtonListener mListener = new MapButtonListener();
    	mMapButton.setOnClickListener(mListener);
    	GetarideButtonListener gListener = new GetarideButtonListener();
    	mGivearideButton.setOnClickListener(gListener);    	
    }
}